package com.iooiee;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *主配置类，开启切面自动代理,用bean 注入切面类
 * @Author: Yanggc
 * DateTime: 2020-05-24
 */
@Configuration
@EnableAspectJAutoProxy
public class MainConfig {

	@Bean
	public Calculate calculate(){
		return new CalculateImpl();
	}

	@Bean
	public LogAspect logAspect(){
		return new LogAspect();
	}
}
